package ynu.edu.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import ynu.edu.entity.OrderDetailet;
import java.util.List;

@Repository
public interface OrderDetailetRepository extends JpaRepository<OrderDetailet, Integer> {
    @Query("SELECT od FROM OrderDetailet od WHERE od.orderId = :orderId")
    List<OrderDetailet> findByOrderId(@Param("orderId") Integer orderId);
} 